package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCatalog;
import cn.wolfcode.luowowo.article.query.StrategyCatalogQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCatalogService {
    /**
     * 查询StrategyCatalog的分页对象
     * @param qo
     * @return
     */
    PageInfo query(StrategyCatalogQuery qo);

    /**
     * 保存或者新增strategyCatalog对象
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 根据id删除攻略目录
     * @param id
     */
    void delete(Long id);

    /**
     * 根据Strategy的id 去查询攻略目录
     * @param id
     * @return
     */
    List<StrategyCatalog> getCatalogByStrategyId(Long id);

    /**
     * 根据目的地id去查询目录
     * @param id
     * @return
     */
    List<StrategyCatalog> selectCatalogByDestId(Long id);

    /**
     * 根据目录id去查询目录
     * @param catalogId
     */
    StrategyCatalog get(Long catalogId);
}
